package com.whc.gulimall.product.feign;

import com.whc.common.to.es.SkuEsModel;
import com.whc.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * @author angaoen
 */
@FeignClient(name = "gulimall-search", path = "/search/save")
public interface SearchFeignService {

    /**
     * 上架商品
     *
     * @param skuEsModels 上架商品列表
     * @return 统一返回结果
     */
    @PostMapping("/product")
    R productStatusUp(@RequestBody List<SkuEsModel> skuEsModels);
}
